Max Chernoff via ntg-context schrieb am 20.08.2022 um 08:41:
Hi,
Could someone clarify me in what kind of context the color of a
hyperlink is controlled by the "color" property of \setupurl?
This code:
\show\setupurl
\showthe\everysetupurl
produces:
> \se
Hi,
> Could someone clarify me in what kind of context the color of a
> hyperlink is controlled by the "color" property of \setupurl?
This code:
\show\setupurl
\showthe\everysetupurl
produces:
> \setupurl=frozen protected macro:
Good morning everyone.
I have been doing some tests on the "color" property of
\setupinteraction and the "color" property of \setupurl and my feeling
is that the color of the hyperlinks is always controlled by
\setupinteraction.
Could someone clarify me in what kind
Henning Hraban Ramm <mailto:te...@fiee.net>
19. Februar 2018 um 11:12
Ahoi,
I’m trying to typeset URLs in italics, but \setupurl[style=\em] (or
any other value like italic, bold etc.) doesn’t change the outcome of
\goto or \hyphenatedurl.
Is this a bug?
\starttext
\setupurl[sty
Ahoi,
I’m trying to typeset URLs in italics, but \setupurl[style=\em] (or any other
value like italic, bold etc.) doesn’t change the outcome of \goto or
\hyphenatedurl.
Is this a bug?
\starttext
\setupurl[style=\em]
\hyphenatedurl{www.fiee.net}
\goto{www.fiee.net}
\stoptext
Greetlings
On Sat, 4 Feb 2017 09:10:33 -0700
Alan Braslau <alan.bras...@cea.fr> wrote:
> On Fri, 3 Feb 2017 17:26:35 -0500
> Rik Kabel <cont...@rik.users.panix.com> wrote:
>
> > Is there a user-level control for the styling of urls in the new
> > bibliography system? I
On Fri, 3 Feb 2017 17:26:35 -0500
Rik Kabel <cont...@rik.users.panix.com> wrote:
> Is there a user-level control for the styling of urls in the new
> bibliography system? I use
>
> \setupurl[style=\addff{f:ns}\ss]
>
> (where f:ns is a fontfeature definition for lin
ConTeXters,
Is there a user-level control for the styling of urls in the new
bibliography system? I use
\setupurl[style=\addff{f:ns}\ss]
(where f:ns is a fontfeature definition for lining/new style numerals)
for the rest of the document. The bibliography honors this formatting
for urls
ef\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]}
\def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1}]}
% Style
\setupurl
[color=none,
style=normal]
% Setup two columns
\defineparagraphs[TwoColumns][n=2, align={hz,hanging}]
\setupparagraphs[TwoColumns][1][width=200pt]
% Setu
\definebar[urlbar][underbar]
\setupurl[style=\mono\urlbar,color=blue]
Interesting, thank you, Hans, it indeed works as expected. Could you
supplement this with some explanations, i.e. why this one works compared to
using plain `underbar'? I assume that the `color' key is overridden
Hello,
So far I came up with the following solution:
\setupurl[
style={\mono\underbar},
color={blue},
]
\def
\url{%
\dosingleargument
\dourl
}
\def
\dourl[#1]{%
\begingroup
\setupbar[%
style={\urlparameter{style}},
color={\urlparameter{color}},
]%
\from[#1
On 5/17/2015 8:07 PM, Alexander Shukaev wrote:
Hello,
So far I came up with the following solution:
\setupurl[
style={\mono\underbar},
color={blue},
]
\def
\url{%
\dosingleargument
\dourl
}
\def
\dourl[#1]{%
\begingroup
\setupbar[%
style={\urlparameter{style
was introduced that enables
hyphenation in \tex commands.
How could I replace **only for \tex** the hyphenation character with an
underscore right below the previous character?
How could these hyphenation settings be added to \setupurl _besides the
ones from \hyphenatedurl_?
Locating the underscore
}
\stoptext
In a beta from this year a new feature was introduced that enables
hyphenation in \tex commands.
How could I replace **only for \tex** the hyphenation character with an
underscore right below the previous character?
How could these hyphenation settings be added to \setupurl _besides
is suboptimal:
\useURL[url29][mailto:nob...@nowhere.net][][nob...@nowhere.net]
\from[url29]
Is there a way to get the hyphenated url, the mailto: interaction and
the formatting with \setupurl?
Many thanks for your help,
Pablo
--
http://www.ousia.tk
Dear list,
I typeset URLs with \hyphenatedurl, and have two questions.
(1) Is there a feature available to insert a custom symbol when a
line-break occurs, e.g. \hookleftarrow?
(2) How can I disable the stretching between characters? I've tried
the following without success:
\setupurl
:
\setupurl [space=no]
\setupurl [urlspace=no]
\unprotect
\def\lang_url_space{}
\protect
Wolfgang
___
If your question is of interest to others as well, please add an entry to the
Wiki!
maillist : ntg
the fourth argument for \useurl you can change the
style and color for the url with the \setupurl command, it would even
be split at page breaks because context already uses the
\hyphenatedurl command in this case.
\setupurl[style=mono,color=red]
\starttext
The wiki located at \useURL[url1
with the \setupurl command, it would even be split at page
breaks because context already uses the \hyphenatedurl command in this case.
\setupurl[style=mono,color=red]
\starttext
The wiki located at \useURL[url1][http://wiki.contextgarden.net]\from[url1].
\stoptext
Wolfgang
Hello ConTeXist.
I have a question: Is there \setupurl independent on \setupinteraction?
Is there posibility get external references a different color than the
other (default) links (to sections, figures etc) defined by
\setupinteraction?
Thanx Jaroslav Hajtmar
Here is my minimal example
, contrastcolor=]
\setupurl[style=type, color=green]
\setupexternalfigures[location={local,default}]
\useURL [garden]
[http://wiki.contextgarden.net/][]
[http://wiki.contextgarden.net/]
\starttext
\section[sect]{Section}
This is testing Cow section.
\placefigure[here][cowfig]{Cow figure
:
\setupurl[color=orange]
I thought that that would set the external hyperlink colour to *orange*.
In the same document, how do I set:
- hyperlink colours to *orange*;
- index page number colours to *red*;
- table of contents text to *dark cyan*; and
- table of contents page numbers
From http://www.mail-archive.com/ntg-context@ntg.nl/msg44867.html it
appears that \setupinteraction affects the \setupurl command when no url is
given. This was not obvious from the
documentationhttp://wiki.contextgarden.net/Command/setupurl
.
It seems that assigning different colours
\switchtobodyfont[48pt]
\color[ChapterNumber]{#1}}}
}
\setuppagenumbering[%
alternative=doublesided,
location={footer, center}, % header, middle, inleft,
inmargin
command=\Page,
]
\setupinteraction[state=start,color=black] % klikaci dokument
\setupurl[style=type,color
Am 14.01.2012 um 15:16 schrieb Gerben Wierda:
This code below gets me a working URL, but instead of the word kudos in blue
I get the entire URL in my text. Why is that?
\setupcolors[state=start]
\setupurl [color=blue]
\setupinteraction [state=start,color=blue]
\useURL[kudos
[state=start]
\setupurl [color=blue]
\setupinteraction [state=start,color=blue]
\useURL[kudos][http://nl.wikipedia.org/wiki/Kudos_(computerterm)][][kudos]
\setuppapersize[A4,portrait][A4,portrait]
\starttext
\url[kudos]
\stoptext
G
This code below gets me a working URL, but instead of the word kudos in blue I
get the entire URL in my text. Why is that?
\setupcolors [state=start]
\setupurl [color=blue]
\setupinteraction [state=start,color=blue]
\useURL[kudos][http://nl.wikipedia.org/wiki/Kudos_(computerterm
to \setupurl) but \url does not create a hyperlink:
http://archive.contextgarden.net/message/20110915.115247.f23c2aad.en.html
\def\mailto#1{\useURL[#1][mailto:#1][][#1]\from[{#1}]}
\def\MailTo#1#2{\useURL[#1][mailto:#1][][#2]\from[{#1
[aurl][http://www.pragma-ade.com/download-1.htm]
%%% It comes with a proper setup for everything.
\setupurl[style={\tf\addff{url}}]
%%% If you must use the “href” macro, disable the font feature locally.
\define[1]\href{%
\begingroup
\addff{url}%
\goto{\hyphenatedurl{#1}}[url(#1
/download-1.htm]
%%% It comes with a proper setup for everything.
\setupurl[style={\tf\addff{url}}]
%%% If you must use the “href” macro, disable the font feature locally.
\define[1]\href{%
\begingroup
\addff{url}%
\goto{\hyphenatedurl{#1}}[url(#1)]%
\endgroup%
}
\starttext
42
” key of the interaction
setups:
·
\setupbodyfontenvironment[default][em=italic]
\setupinteraction[state=start,color=,style=\em,contrastcolor=,focus=standard]
\useURL[aurl][http://www.pragma-ade.com/download-1.htm]
\setupurl[style
\dosetcolorattribute\??ur\c!color
\goto{\hyphenatedurl{\ctxlua{structures.references.urls.get(#1,\@@uralternative,\@@urspace)}}}[fileorurl(#1)]%
\endgroup}
but this makes \url inherit the style from \setupinteraction rather than
\setupurl.
Also, \url does not support urlalternative for splitting
\setupcolors [state=start]
%\definecolor[lightBlue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]
% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
% Fonts
%% Chapters...
\setupheads
]
% On the grid please
\setuplayout
[grid=yes,
footer=0.5\footerheight,
header=0.5\headerheight]
% Enable colors and activate hyperlinks
\setupcolors [state=start]
\definecolor[lightBlue][r=0.5, g=0.5, b=1.0]
\setupinteraction [state=start, color=lightBlue]
\setupurl[style=small, space=yes
[state=start]
%\definecolor[lightBlue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]
% Enumerate the URLs
%\useURL
[mccammond][{http://www.math.ucsb.edu/~jon.mccammond/geogrouptheory/}][] [{\tf
http://www.math.ucsb.edu
Hi
Now I see. Thanks.
\setupinteraction
[state=start,
color=red] % \goto and \from
\setupurl
[color=orange] % \url
B.R.
Vyatcheslav
___
If your question is of interest to others as well, please add
Hello,
\setupurl[color=blue] does not work in mkiv again.
Also, please look how I use \useURL and \goto to typeset the link. Is
there a way do it less verbose?
Regards,
Vyatcheslav
%EXAMPLE=
\chapter{Modelling of Continuous-Time Dynamic
Am 26.03.10 17:59, schrieb Vyatcheslav Yatskovsky:
Hello,
\setupurl[color=blue] does not work in mkiv again.
Also, please look how I use \useURL and \goto to typeset the link. Is
there a way do it less verbose?
http://wiki.contextgarden.net/url#Other_ways
\setupinteraction
[state=start
Hi Wolfgang
Nice, and your example works. But why mine does not??
\setupinteraction
[state=start,
color=red] % \goto and \from
\setupurl
[color=orange] % \url
\useURL[149][http://xkcd.com/149/][][I prefer hot dogs.]
\useURL[224][http://xkcd.com/224/]
\starttext
\startlines
\goto
Am 26.03.10 23:38, schrieb Vyatcheslav Yatskovsky:
Hi Wolfgang
Nice, and your example works. But why mine does not??
\setupinteraction
[state=start,
color=red] % \goto and \from
\setupurl
[color=orange] % \url
Can you see the comments?
Wolfgang
\type|\type|.
\setuptype[option=TEX]
\definetype [normaltype] [option=none]
%D We enable colors, interaction and bookmarks.
\setupinteraction [state=start,color=darkred,style=normal]
\setupurl [color=darkred]
\setupcolors [state=start]
\placebookmarks [section,subsection
=fit,height=fit,backspace=1.7cm]
% Enable colors and activate hyperlinks
\setupcolors [state=start]
%\definecolor[lightBlue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]
% Enumerate the URLs
%\useURL[wiki][http
Eythan Weg wrote:
Hans Hagen pra...@wxs.nl
Sat, 22 Aug 2009 12:45:49 +0200
Eythan Weg wrote:
Hi,
With current context and luatex revision 3038 I use this sample:
\setupinteraction[state=start]
\setupurl[color=blue]
\starttext
\useURL[here][http
Hans Hagen pra...@wxs.nl
Sat, 22 Aug 2009 12:45:49 +0200
Eythan Weg wrote:
Hi,
With current context and luatex revision 3038 I use this sample:
\setupinteraction[state=start]
\setupurl[color=blue]
\starttext
\useURL[here][http://google.com]
\from[here
Eythan Weg wrote:
Hi,
With current context and luatex revision 3038 I use this sample:
\setupinteraction[state=start]
\setupurl[color=blue]
\starttext
\useURL[here][http://google.com]
\from[here]
\stoptext
It compiles with the link shown correctly but in
greenish color. Pressing
Hi,
With current context and luatex revision 3038 I use this sample:
\setupinteraction[state=start]
\setupurl[color=blue]
\starttext
\useURL[here][http://google.com]
\from[here]
\stoptext
It compiles with the link shown correctly but in
greenish color. Pressing on it,
the browser tries
%width=fit,height=fit,backspace=2cm]
% Enable colors and activate hyperlinks
\setupcolors [state=start]
\definecolor[lightblue][r=0.5, g=0.5, b=1.0]
\setupurl[space=yes]
% Fonts
%% Chapters...
\setupheads[align=flushleft]
\setuphead[chapter][style={\bfd}]
\setuphead[section][style={\bfc}, header
[lightblue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]
% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
%\useURL[nagorko-pdf][http://www.math.bgu.ac.il/~barakw/probseminar/nagorko
,%separació entre abaix i darrera lÃnia
%width=fit,height=fit,backspace=2cm]
% Enable colors and activate hyperlinks
\setupcolors [state=start]
\definecolor[lightblue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes
]
\definecolor[lightblue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]
% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
%\useURL[nagorko-pdf][http://www.math.bgu.ac.il/~barakw
=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]
% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
%\useURL[nagorko-pdf][http://www.math.bgu.ac.il/~barakw/probseminar/nagorko/slides.pdf
=start]
\definecolor[lightblue][r=0.5, g=0.5, b=1.0]
%\setupinteraction [state=start, color=lightBlue]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]
% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
%\useURL[nagorko-pdf][http://www.math.bgu.ac.il/~barakw
]
%\setupurl[style=small, space=yes]
\setupurl[space=yes]
% Enumerate the URLs
%\useURL[wiki][http://wiki.contextgarden.net][][\ConTeXt\ wiki]
%\useURL[nagorko-pdf][http://www.math.bgu.ac.il/~barakw/probseminar/nagorko/slides.pdf][][http://www.math.bgu.ac.il/\~{}barakw/\quad\quad\quad\quad
probseminar
Hi,
Is there macro for typesetting a URL without defining it before hand?
E.g., something as simple as, \href{www.google.com}, it'd also be great if
\setupalign[hyphenated]
\setupurl[space=yes,style=\ss,urlalternative=]
also determined the way they are typeset.
Mohamed
if
\setupalign[hyphenated]
\setupurl[space=yes,style=\ss,urlalternative=]
also determined the way they are typeset.
Mohamed
___
If your question is of interest to others as well, please add an entry to
the Wiki
,
header=0.5\headerheight]
% Enable colors and activate hyperlinks
\setupcolors [state=start]
\definecolor[lightBlue][r=0.5, g=0.5, b=1.0]
\setupinteraction [state=start, color=lightBlue]
\setupurl[style=small, space=yes]
% Enumerate the URLs
\useURL [pragma] [{www.pragma-ade.com}]
\useURL
lengthy.)
See typset text in the TeX file (very bottom of this mail) about how the
issues; I verified with ConTeXt Live (pdfeTeX and LuaTeX) that it is not
a local problem.
Thanks,
Tobias
%
\usemodule[bib]
\setupinteraction[state=start]
\setupurl[style
]
\setuptoptexts[text|margin|edge][text|section|date|mark|pagenumber][text|section|date|mark|pagenumber]
\setuptype[options]
\setuptyping[file|typing|name][options]
\setupunderbar[options]
\setupurl[options]
\setupversions[options]
\setupwhitespace[none|small|medium|big|line|fixed|fix|dimension]
# \setvalue
Tobias Burnus wrote:
Hi,
what does actually the urlalternative option of \setupurl do?
It does absolutely nothing, afaics.
Best, Taco
___
ntg-context mailing list
ntg-context@ntg.nl
http://www.ntg.nl/mailman/listinfo/ntg-context
Hi,
what does actually the urlalternative option of \setupurl do?
If I run the following example, I don't see any difference!
Tobias
\useURL
[test]
[sentence_sentence%sentence#sentence~sentence/sentence//sentence:sentence.sentence]
\startlinecorrection
\hbox to \hsize
{\hss\en
] % to
set color of text
\setupinteraction[state=start,color=black,style=rm] % for URLs and
links
\setupurl[style=normal]
}
% default mode --- Screen
\doifnotmode{print}{
%% page layout
\definepapersize[pagesize][width=36pc,height
,
rightmargindistance=0.25pc,
leftmargindistance=0.25pc]
\setupcolors [state=start,textcolor=black] % to
set color of text
\setupinteraction[state=start,color=black,style=rm] % for URLs and
links
\setupurl[style=normal
[way=bychapter]
% URLs are supposed to be typeset in typewriter type fonts but sadly this does
not work ...
\setupurl[style=tt]
% Take care of title formating:
% a) title numbers are to be typeset in the margin
\setupheads[alternative=inmargin]
% b) all titles are to be typeset sans serifs
the same as that in the body text.
\setupurl
Hans
-
Hans Hagen | PRAGMA ADE
Ridderstraat 27 | 8061 GH Hasselt | The Netherlands
tel: 038 477 53 69 | fax: 038 477 53 74
is preferred, \useURL or \useurl?
no prefered
• Is there a “\setupgoto”? I need to make the typeface in the
printed URL the same as that in the body text.
\setupurl
Hans
-
Hans Hagen | PRAGMA
spaces got eaten up. (In additon I have a space in front of the
URL.)
i'll send you a patch ;
btw, then try your example with
\setupurl[space=yes]
(adds stretch between brekable parts; old feature]
Hans
===
% output=pdf interface=en
\setupcolors[state=start]
\setupinteraction[state=start,color=darkgreen]
\setupurl [color=darkgreen]
\useURL
[Adobe]
[http://partners.adobe.com/public/developer/en/font/5091.Design_MM_Fonts.pdf]
\starttext
\placecontent
\page
\chapter{Test}
\section{Test}
\url[Adobe
Thank you Robert, it works now. I was missing the \from[], and \url[] only
prints the url, it does not link to it. So the following works:
=
\setupcolors[state=start]
\setupinteraction[state=start,color=darkgreen]
\setupurl [color=darkgreen
Nikolai Weibull wrote:
* Hans Hagen [EMAIL PROTECTED] [Nov 18, 2004 18:50]:
I just ran into this bug on my own and noticed your message on-list.
Did you get it resolved, cos you're right: it's ugly.
hm, interesting bug, i'll spare you the details
:-)
Anyway, does this mean you fixed it (and I
\@@iastyle\@@urstyle\let\@@urstyle\empty}%
\doifsomething\@@urcolor{\let\@@iacolor\@@urcolor\let\@@urcolor\empty}%
\doexternaldocument[#1][#2][{\url[#3]}]%
\egroup}
\protect
\setupcolors [state=start]
\setupinteraction [state=start]
\setupurl [color=blue]
\starttext
\useURL[something
Nikolai--
I just ran into this bug on my own and noticed your message on-list. Did
you get it resolved, cos you're right: it's ugly.
Nikolai Weibull said this at Mon, 5 Jul 2004 21:02:36 +0200:
\setupURL
[color=blue]
seems buggy. Try this:
\setupcolors
[state=start]
\setupinteraction
Adam Lindsay wrote:
I just ran into this bug on my own and noticed your message on-list. Did
you get it resolved, cos you're right: it's ugly.
hm, interesting bug, i'll spare you the details
Hans
-
there is \hyphenatedurl{http://www}
May be this is what you are looking for.
Willi
David Arnold wrote:
All,
I have:
\setupurl
[style=bold]
\useURL[craig][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fal
l98/CraigA/project3.htm]
\from[craig]
But it runs off my slide before
David Arnold wrote:
Willi et al,
How do you use \hyphenatedurl? I tried:
ok, let's end the suffering here ...
\starttext
\showframe
\setupurl
[style=bold]
\useURL[craig][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fall98/CraigA/project3.htm]
\useURL[giarc][nice
place][http
\hyphenatedurl? I tried:
ok, let's end the suffering here ...
\starttext
\showframe
\setupurl
[style=bold]
\useURL[craig][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fa
ll98/CraigA/project3.htm]
\useURL[giarc][nice
place][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fall98
All,
I have:
\page
\subject{Student Projects}
\setupurl
[style=bold]
\useURL[craig][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fal
l98/CraigA/project3.htm]
\from[craig]
But even with \setuppapersize[S6][S6] this URL goes off the page. I'd like
to split it onto two lines. Any
All,
I have:
\setupurl
[style=bold]
\useURL[craig][http://online.redwoods.cc.ca.us/instruct/darnold/CalcProj/Fal
l98/CraigA/project3.htm]
\from[craig]
But it runs off my slide before wrapping. I'd like to break this up so it
is on two lines and centered. Any suggestions
\setupURL
[color=blue]
seems buggy. Try this:
\setupcolors
[state=start]
\setupinteraction
[state=start]
\setupurl
[color=blue]
\useURL[one][http://www.google.com/]
\starttext
Why the hell is \from[one] wrapping so badly?
\stoptext
You will (hopefully...or something) notice
Hi Nikolai,
\setupurl
[color=blue]
Does setupurl take color as an argument? Where is this documented?
Patrick
BTW: \setupinteraction[color=blue] works; perhaps this is enough for
a workaround.
--
texshow-web: http://members.ping.de:8061
ConTeXt wiki: http://members.ping.de:8062
* Patrick Gundlach [EMAIL PROTECTED] [Jul 05, 2004 23:40]:
\setupurl
[color=blue]
Does setupurl take color as an argument? Where is this documented?
Yes. It's not really documented, but it's in core-ref.tex around lines
2885.
BTW: \setupinteraction[color=blue] works; perhaps
80 matches
Mail list logo